<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Attendance extends CI_Controller {

	function __construct()
	{
		parent::__construct();
		
		// check if user logged in 
		if (!$this->ion_auth->logged_in())
	  	{
			redirect('auth/login');
	  	}
		
	//	$this->load->model('attendance');	
		
	}

   function index()
   {

	  $meta['page_title'] = "welcome user";
	//  $meta[] = $data;
	$meta['message'] = "Logged In Successfully";
	$data['server_time'] = 'asdasdsa';
	//echo "asdasdasd";
	//  exit;
      $this->load->view('common/header', $meta);
      $this->load->view('user/attendance',$data);
      $this->load->view('common/footer');
	  }
	
	}
	
	function get()
	{		
	echo "get"	;
	}
	
	
	?>